<template>
  <div class="about">
    <h2>about: {{ $route.query.name }}</h2>
    <h2> age: {{ $route.query.age }} </h2>
    <button @click="backBtnClick">返回</button>
  </div>
</template>

<script setup>
  import {useRouter} from "vue-router"
  
  const router = useRouter()

  function backBtnClick() {
    router.go(-1)
  }
</script>

<style scoped>
</style>